home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 29
/
Volume 29 - JOGO DISK .iso
/
Games
/
jungle_adventure.swf
/
scripts
/
__Packages
/
VR_Shield.as
< prev
next >
Wrap
Text File
|
2006-11-29
|
595b
|
30 lines
class VR_Shield extends GameCollectable
{
var assetID = "Shield";
var value = 30;
var editor_isItem = true;
var editor_name = "VRShield";
function VR_Shield()
{
super();
}
function onAddToWorld()
{
if(!_global.VR_ON_SHIELD)
{
this.world.removeObject(this);
return undefined;
}
}
function setCollected(obj)
{
if(this.collected)
{
return undefined;
}
GameSound.playSound("vr");
obj.shiftShield(this.value);
this.world.removeObject(this);
}
}